﻿using System;
using System.Collections.Generic;

namespace Dora.Tools.Utility.Const
{
    public class ConstValue
    {
        #region Common
        /// <summary>
        /// 中文分隔字符
        /// by 大师
        /// </summary>
        public static char ChineseSeparatorChar => '，';

        /// <summary>
        /// 短信签名
        /// by 崔 助旅通
        /// </summary>
        public static string SmsSignName => "美程";

        /// <summary>
        /// 用户评分最大值，
        /// by 大师
        /// </summary>
        public static int UserScoreMax => 5;

        /// <summary>
        /// 当前系统所在的环境，值从EnvironmentEnum来
        /// by 大师
        /// </summary>
        /// <remarks>10Dev,20Test,30Pre,40Pro</remarks>
        public static int Environment => 10;
        /// <summary>
        /// 技术中心钉钉部门Id
        /// by 大师
        /// </summary>
        //public static string TechDeptDTId => "90712149";

        /// <summary>
        /// 默认日期
        /// by 大师
        /// </summary>
        public static DateTime DefautDate => new DateTime(1900, 1, 1);

        ///// <summary>
        ///// 组团社管理员账户默认角色
        ///// by wyq
        ///// </summary>
        //public static string TasAdminRoleNo => "TasAdminRole";
        ///// <summary>
        ///// 供应商管理员账号默认角色
        ///// by wyq
        ///// </summary>
        //public static string SrmAdminRoleNo => "SrmAdminRole";

        /// <summary>
        /// 最大可合并订单数量
        /// by 大师
        /// </summary>
        public static int MaxCombineOrderCount => 10;
        #endregion

        #region 连接字符串

        ///// <summary>
        ///// 钉钉基础组件日志数据库的连接字符串
        ///// by 崔
        ///// </summary>
        //public static string WriteDingLogDbConnectionString =>
        //    "server=192.168.10.253;Port=3302;database=log_business;persistsecurityinfo=True;user=dev;password=dev;SslMode=none";

        /// <summary>
        /// 读Redis连接字符串
        /// by 龙
        /// </summary>
        //public static string RedisConnectStrRead => "192.168.10.254:6379,password=584ab235-0e5e-11e9-a088-0c9d92bf536f,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=102400,prefix=";
        public static string RedisConnectStrRead => "127.0.0.1:6379,password=,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=102400,prefix=,preheat=false";

        /// <summary>
        /// 写Redis连接字符串
        /// by 龙
        /// </summary>
        //public static string RedisConnectStrWrite => "192.168.10.254:6379,password=584ab235-0e5e-11e9-a088-0c9d92bf536f,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=102400";
        public static string RedisConnectStrWrite => "127.0.0.1:6379,password=,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=102400,prefix=,preheat=false";


        /// <summary>
        /// AdminUser连接字符串读
        /// by 大师
        /// </summary>
        public static string AdminUserConnectionStringRead => "server=192.168.10.253;Port=3302;database=admin_user;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string AdminUserConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// AdminUser连接字符串写
        /// by 大师
        /// </summary>
        public static string AdminUserConnectionStringWrite => "server=192.168.10.253;Port=3302;database=admin_user;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string AdminUserConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// CustomerUser连接字符串读
        /// by 大师
        /// </summary>
        public static string CustomerUserConnectionStringRead => "server=192.168.10.253;Port=3302;database=customer_user;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string CustomerUserConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=customer_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// CustomerUser连接字符串写
        /// by 大师
        /// </summary>
        public static string CustomerUserConnectionStringWrite => "server=192.168.10.253;Port=3302;database=customer_user;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string CustomerUserConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=customer_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 钉钉回调 查询连接字符串
        /// </summary>
        public static string DingTalkConnectionStringRead => "server=192.168.10.253;Port=3302;database=audit_dingtalk;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";

        /// <summary>
        /// 钉钉回调 CUD连接字符串
        /// </summary>
        public static string DingTalkConnectionStringWrite => "server=192.168.10.253;Port=3302;database=audit_dingtalk;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";

        /// <summary>
        /// rm 查询连接字符串
        /// </summary>
        public static string RMConnectionStringRead => "server=192.168.10.253;Port=3302;database=rm;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";

        /// <summary>
        /// rm CUD连接字符串
        /// </summary>
        public static string RMConnectionStringWrite => "server=192.168.10.253;Port=3302;database=rm;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";

        /// <summary>
        ///财务查询连接字符串
        /// </summary>
        public static string FinanceConnectionStringRead => "server=192.168.10.253;Port=3302;database=finance;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";

        /// <summary>
        /// 财务连接字符串
        /// </summary>
        public static string FinanceConnectionStringWrite => "server=192.168.10.253;Port=3302;database=finance;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";

        /// <summary>
        /// 保险连接字符串读
        /// </summary>
        public static string InsuranceConnectionStringRead => "server=192.168.10.253;Port=3302;database=admin_user;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string AdminUserConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 保险连接字符串写
        /// </summary>
        public static string InsuranceConnectionStringWrite => "server=192.168.10.253;Port=3302;database=admin_user;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string AdminUserConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 支付管理连接字符串读
        /// </summary>
        public static string PaymentConnectionStringRead => "server=192.168.10.253;Port=3302;database=admin_user;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string AdminUserConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 支付管理连接字符串写
        /// </summary>
        public static string PaymentConnectionStringWrite => "server=192.168.10.253;Port=3302;database=admin_user;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string AdminUserConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 赠品管理连接字符串读
        /// by 赵恒
        /// </summary>
        public static string GiftConnectionStringRead => "server=192.168.10.253;Port=3302;database=gift;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string AdminUserConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 赠品管理连接字符串写
        /// by 赵恒
        /// </summary>
        public static string GiftConnectionStringWrite => "server=192.168.10.253;Port=3302;database=gift;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string AdminUserConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";


        /// <summary>
        /// 产品连接字符串读
        /// </summary>
        public static string ProductConnectionStringRead => "server=192.168.10.253;Port=3302;database=product;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string AdminUserConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 产品连接字符串写
        /// </summary>
        public static string ProductConnectionStringWrite => "server=192.168.10.253;Port=3302;database=product;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string AdminUserConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";


        /// <summary>
        /// 供应商连接字符串读
        /// </summary>
        public static string SupplierConnectionStringRead => "server=192.168.10.253;Port=3302;database=srm;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string AdminUserConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";


        /// <summary>
        /// 供应商连接字符串写
        /// </summary>
        public static string SupplierConnectionStringWrite => "server=192.168.10.253;Port=3302;database=srm;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string AdminUserConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 订单连接字符串读
        /// </summary>
        public static string OrderConnectionStringRead => "server=192.168.10.253;Port=3302;database=order;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string OrderConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=order;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 订单连接字符串写
        /// </summary>
        public static string OrderConnectionStringWrite => "server=192.168.10.253;Port=3302;database=order;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string OrderConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=order;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 合同管理连接字符串读 
        /// by 大吉（计坤）
        /// </summary>
        public static string ContractConnectionStringRead => "server=192.168.10.253;Port=3302;database=order;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string AdminUserConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// 合同管理连接字符串写
        /// by 大吉（计坤）
        /// </summary>
        public static string ContractConnectionStringWrite => "server=192.168.10.253;Port=3302;database=order;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string AdminUserConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=admin_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";


        /// <summary>
        /// 统计服务连接字符串读 
        /// by 大吉（计坤）
        /// </summary>
        public static string StatisticConnectionStringRead => "server=192.168.10.253;Port=3302;database=statistics;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        /// <summary>
        /// 统计服务连接字符串写
        /// by 大吉（计坤）
        /// </summary>
        public static string StatisticConnectionStringWrite => "server=192.168.10.253;Port=3302;database=statistics;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";

        /// <summary>
        /// SysLog连接字符串读
        /// by 大师
        /// </summary>
        public static string SysLogConnectionStringRead => "server=192.168.10.253;Port=3302;database=syslog;persistsecurityinfo=True;user=devRead;password=devRead;SslMode=none";
        //public static string SysLogConnectionStringRead => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=customer_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// SysLog连接字符串写
        /// by 大师
        /// </summary>
        public static string SysLogConnectionStringWrite => "server=192.168.10.253;Port=3302;database=syslog;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        //public static string SysLogConnectionStringWrite => "server=rm-8vb0ue8qhc33fz1f84o.mysql.zhangbei.rds.aliyuncs.com;database=customer_user_db;persistsecurityinfo=True;user=dora_dev;password=36@47-a80-11e9-8db-0c9!b5#6f;SslMode=none";

        /// <summary>
        /// job_quartz连接字符串读
        /// </summary>
        public static string JobQuartzConnectionString=> "server=192.168.10.253;Port=3302;database=job_quartz;persistsecurityinfo=True;user=dev;password=dev;SslMode=none";
        /// <summary>
        /// job_quartz连接字符串写
        /// </summary>
        //public static string JobQuartzConnectionStringWrite => "server=192.168.10.253;Port=3302;database=job_quartz;persistsecurityinfo=True;user=devWrite;password=devWrite;SslMode=none";
        #endregion

        #region OCR 相关配置 by赵恒
        /// <summary>
        /// API_KEY
        /// </summary>
        public static readonly string API_KEY = "taZ78ydMM9qoUsMVPhGqSPcT";

        /// <summary>
        /// SECRET_KEY
        /// </summary>
        public static readonly string SECRET_KEY = "HNtaIHe2c9f0U6ZEdqcObmB2E1DTkk7t";

        /// <summary>
        /// 版本号
        /// </summary>
        public static readonly string Version = "1.0";

        /// <summary>
        /// 安装包路径
        /// </summary>
        public static readonly string Update_URL = "http://soft.dulatrip.cn/doraAI.rar";
        #endregion

        #region 网关地址

        public static string GateWayBaseUrl => "http://192.168.10.179:729";

        #endregion

    }
}
